﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeleteMe.aspx.cs" Inherits="School.Pages.Teaching.DeleteMe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="EdsrdbChoice">
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" 
                    SortExpression="Id" />
                <asp:BoundField DataField="Question_Id" HeaderText="Question_Id" 
                    ReadOnly="True" SortExpression="Question_Id" />
                <asp:BoundField DataField="Choices" HeaderText="Choices" ReadOnly="True" 
                    SortExpression="Choices" />
                <asp:BoundField DataField="Choice_Type" HeaderText="Choice_Type" 
                    ReadOnly="True" SortExpression="Choice_Type" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="EdsrdbChoice" runat="server" ConnectionString="name=SchoolEntities"
            DefaultContainerName="SchoolEntities" EnableFlattening="False" EntitySetName="TE_Question_Bank_answer"
            EntityTypeFilter="" Select="it.[Id], it.[Question_Id], it.[Choices], it.[Choice_Type]"
            Where="it.[Question_Id]=@q">
            <WhereParameters>
                <asp:Parameter DefaultValue="10" Name="q" Type="Int32" />
                <%-- <asp:QueryStringParameter Name="id" Type="Int32" />--%>
            </WhereParameters>
        </asp:EntityDataSource>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=SchoolEntities"
            DefaultContainerName="SchoolEntities" EnableFlattening="False" EntitySetName="TE_Question_Bank_answer"
            EntityTypeFilter="" Select="it.[Id], it.[Question_Id], it.[Choices], it.[Choice_Type]"
            Where="it.[Question_Id]=@q">
            <WhereParameters>
                <asp:Parameter DefaultValue="10" Name="q" Type="Int32" />
            </WhereParameters>
        </asp:EntityDataSource>
    </div>
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" DataSourceID="EdsrdbChoice"
        DataTextField="Choices" DataValueField="Id">
    </asp:RadioButtonList>
    </form>
</body>
</html>
